// lazy Suspence 异步组件
import React, { lazy, Suspense } from 'react';
 
// 动态导入组件
const AsyncComponent = lazy(() => import('../asyncCom/index'));
 
function Demo() {
  return (
    <Suspense fallback={<div>Loading...</div>}>
      <AsyncComponent/>
    </Suspense>
  );
}

export default Demo;